﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OracleClient;
using DBUtility;

namespace BLL.DutyAssignment
{
    public class B_DutyZhouqi
    {
        private readonly OracleDAL.DutyAssignment.D_DutyZhouqi dal = new OracleDAL.DutyAssignment.D_DutyZhouqi();
        public DataTable GetList(string dutyID)
        {
            return dal.GetList(dutyID);
        }

        /// <summary>
        ///  增加一条数据
        /// </summary>
        public bool Add(Model.DutyAssignment.M_DutyZhouqi model)
        {
            return dal.Add(model);
        }

        public DataSet GetZhouqi(string strWhere)
        {
            return dal.GetZhouqi(strWhere);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string strWhere)
        {
            return dal.Delete(strWhere);
        }
    }
}
